﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001347 RID: 4935
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeLoginActivityRewardCsReq : IMessage<TakeLoginActivityRewardCsReq>, IMessage, IEquatable<TakeLoginActivityRewardCsReq>, IDeepCloneable<TakeLoginActivityRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003E43 RID: 15939
		// (get) Token: 0x0600DCF9 RID: 56569 RVA: 0x0024FAB5 File Offset: 0x0024DCB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeLoginActivityRewardCsReq> Parser
		{
			get
			{
				return TakeLoginActivityRewardCsReq._parser;
			}
		}

		// Token: 0x17003E44 RID: 15940
		// (get) Token: 0x0600DCFA RID: 56570 RVA: 0x0024FABC File Offset: 0x0024DCBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeLoginActivityRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003E45 RID: 15941
		// (get) Token: 0x0600DCFB RID: 56571 RVA: 0x0024FACE File Offset: 0x0024DCCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeLoginActivityRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600DCFC RID: 56572 RVA: 0x0024FAD5 File Offset: 0x0024DCD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeLoginActivityRewardCsReq()
		{
		}

		// Token: 0x0600DCFD RID: 56573 RVA: 0x0024FADD File Offset: 0x0024DCDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeLoginActivityRewardCsReq(TakeLoginActivityRewardCsReq other) : this()
		{
			this.id_ = other.id_;
			this.takeDays_ = other.takeDays_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DCFE RID: 56574 RVA: 0x0024FB0E File Offset: 0x0024DD0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeLoginActivityRewardCsReq Clone()
		{
			return new TakeLoginActivityRewardCsReq(this);
		}

		// Token: 0x17003E46 RID: 15942
		// (get) Token: 0x0600DCFF RID: 56575 RVA: 0x0024FB16 File Offset: 0x0024DD16
		// (set) Token: 0x0600DD00 RID: 56576 RVA: 0x0024FB1E File Offset: 0x0024DD1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17003E47 RID: 15943
		// (get) Token: 0x0600DD01 RID: 56577 RVA: 0x0024FB27 File Offset: 0x0024DD27
		// (set) Token: 0x0600DD02 RID: 56578 RVA: 0x0024FB2F File Offset: 0x0024DD2F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TakeDays
		{
			get
			{
				return this.takeDays_;
			}
			set
			{
				this.takeDays_ = value;
			}
		}

		// Token: 0x0600DD03 RID: 56579 RVA: 0x0024FB38 File Offset: 0x0024DD38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeLoginActivityRewardCsReq);
		}

		// Token: 0x0600DD04 RID: 56580 RVA: 0x0024FB46 File Offset: 0x0024DD46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeLoginActivityRewardCsReq other)
		{
			return other != null && (other == this || (this.Id == other.Id && this.TakeDays == other.TakeDays && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DD05 RID: 56581 RVA: 0x0024FB84 File Offset: 0x0024DD84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.TakeDays != 0U)
			{
				num ^= this.TakeDays.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DD06 RID: 56582 RVA: 0x0024FBDC File Offset: 0x0024DDDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DD07 RID: 56583 RVA: 0x0024FBE4 File Offset: 0x0024DDE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DD08 RID: 56584 RVA: 0x0024FBF0 File Offset: 0x0024DDF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Id);
			}
			if (this.TakeDays != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.TakeDays);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DD09 RID: 56585 RVA: 0x0024FC4C File Offset: 0x0024DE4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.TakeDays != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TakeDays);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DD0A RID: 56586 RVA: 0x0024FCA4 File Offset: 0x0024DEA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeLoginActivityRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.TakeDays != 0U)
			{
				this.TakeDays = other.TakeDays;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DD0B RID: 56587 RVA: 0x0024FCF4 File Offset: 0x0024DEF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DD0C RID: 56588 RVA: 0x0024FD00 File Offset: 0x0024DF00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.TakeDays = input.ReadUInt32();
					}
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040057B3 RID: 22451
		private static readonly MessageParser<TakeLoginActivityRewardCsReq> _parser = new MessageParser<TakeLoginActivityRewardCsReq>(() => new TakeLoginActivityRewardCsReq());

		// Token: 0x040057B4 RID: 22452
		private UnknownFieldSet _unknownFields;

		// Token: 0x040057B5 RID: 22453
		public const int IdFieldNumber = 2;

		// Token: 0x040057B6 RID: 22454
		private uint id_;

		// Token: 0x040057B7 RID: 22455
		public const int TakeDaysFieldNumber = 5;

		// Token: 0x040057B8 RID: 22456
		private uint takeDays_;
	}
}
